package com.feel.mall.goodsservice.mapper;

import com.feel.mall.common.bean.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: 刘永钦
 * @Description:
 */
@Mapper
public interface GoodsMapper {
//    添加 == 主键回填
    int insert(Goods goods);
//    根据id删除
    int delete(Integer id);
//    根据id查找
    Goods selectById(Integer id);
//    根据id修改
    int update(Goods goods);
//    根据条件查询
    List<Goods> selectByCondition(Goods condition);
    List<Goods> userSelectByCondition(Goods condition);
}
